package com.module.home.ui.scoringFactors

import com.chad.library.adapter.base.BaseProviderMultiAdapter
import com.chad.library.adapter.base.provider.BaseItemProvider
import com.common.app.data.bean.home.ScoringClassListBean
import com.common.app.widget.provider.CommonEmptyProvider
import com.module.home.ui.scoringFactors.provider.ScoringFactorsAnnulusListCardProvider
import com.module.home.ui.scoringFactors.provider.ScoringFactorsHrCardProvider
import com.module.home.ui.scoringFactors.provider.ScoringFactorsOxyCardProvider

/**
 *
 * 作者：sosou
 *
 * 版本：1.0
 *
 * 创建日期：2025/08/27
 *
 * 描述：
 *
 * 修订历史：
 *
 */
class ScoringFactorsCardAdapter : BaseProviderMultiAdapter<ScoringClassListBean>() {

    init {
        addItemProvider(CommonEmptyProvider<ScoringClassListBean>())
        addItemProvider(ScoringFactorsAnnulusListCardProvider())
        addItemProvider(ScoringFactorsHrCardProvider())
        addItemProvider(ScoringFactorsOxyCardProvider())

    }

    override fun getItemType(data: List<ScoringClassListBean>, position: Int): Int {
        return data[position].getCusItemType()
    }

    fun getCusItemProvider(viewType: Int): BaseItemProvider<ScoringClassListBean>? {
        return getItemProvider(viewType)
    }

}